<?php

namespace app\model;

use think\Model;

/**
 * 会员模型
 * @package app\model
 */
class Page extends Model
{
    // 自动写入时间戳
    protected $autoWriteTimestamp = true;

    public static function getContentByName($name)
    {
        $page = self::where('cname', $name)->find();
        return $page->content;
    }}
